<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<html>
<head>
    <title>忘记密码</title>
    <meta name="decorator" content="cms_default_${site.theme}"/>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#inputForm").validate({
                rules: {
                    mobile: {remote: "${ctx}/sys/user/checkLoginName?loginName=" + encodeURIComponent('${user.loginName}')}
                },
                messages: {
                    mobile: {remote: "该手机号不存在，请重新输入"},

                },
        })
    </script>
</head>



<body>

<div class="header">
    <div id="messageBox" class="alert alert-error ${empty message ? 'hide' : ''}"><button data-dismiss="alert" class="close">×</button>
        <label id="loginError" class="error">${message}</label>
    </div>
</div>
<div style="text-align: center ">
    <div style="margin-left:55%;">
    <h1 class="form-signin-heading">找回密码</h1>
    <form:form id="loginForm" class="form-signin" method="post" action="${ctx}/sys/user/goUserForgetPassword">
        <div class="control-group">
            <label class="control-label">请输入您的手机号:</label>
            <div class="controls">
           <input path="loginName" htmlEscape="false" maxlength="50" class="required"/>

                <span class="help-inline"><font color="red">*</font> </span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">请输入数字动态验证码:</label>
            <div class="controls">
               <input path="Validate" htmlEscape="false" maxlength="50" class="required"/>
                <span class="help-inline"><font color="red">*</font> </span>
            </div>
        </div>
        <input class="btn btn-large btn-primary" type="submit" value="下一步"/>&nbsp;&nbsp;
    </form:form>
    </div>
</div>
</body>
</html>
